export const myMixin = {
    methods: {
        mySearchArr(arr,data,key='name'){
            let filArr=[];
              filArr = arr.filter((item,index) => {  
                  return item[key].toString().indexOf(data) != -1
              })
              if(filArr.length==0){
                this.$message({
                    type: 'warning',
                    message: '没有查询到'
                  });
                filArr=arr
            }
              return filArr          
          },        
    } 
}
